package com.ruiben.mall.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import java.util.Date;

@ApiModel(value = "用户对象")
public class User {
    /**
     * id
     */
    @ApiModelProperty(hidden = true)
    @Id
    private String id;


    /**
     * 是否删除
     */
    @Column(name = "isDelete")
    private Boolean isdelete;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名",name = "username",example = "yuzheuser",required = true)
    private String username;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @ApiModelProperty(hidden = true)
    private Date createTime;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码",name = "password",example = "123456",required = true)
    private String password;

    /**
     * 手机号
     */
    @ApiModelProperty(value = "用户名",name = "phone",example = "15637420215",required = true)
    private String phone;

    /**
     * 昵称
     */
    @ApiModelProperty(value = "用户名",name = "nickname",example = "兮朔",required = true)
    private String nickname;

    @Column(name = "headImg")
    @ApiModelProperty(value = "用户名",name = "headimg",example = "/home/wz/headimg.jpg",required = true)
    private String headimg;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    @ApiModelProperty(hidden = true)
    private Date updateTime;

    /**
     * 邮箱地址
     */
    private String email;

    /**
     * 性别 :0男，1女
     */
    @ApiModelProperty(value = "性别",name = "sex",example = "0",required = false)
    private Boolean sex;

    /**
     * 生日
     */
    private String birthday;

    /**
     * 用户余额
     */
    @Column(name = "user_money")
    private Long userMoney;

    @Column(name = "problem")
    private String problem;

    @Column(name = "answer")
    private String answer;

    /**
     * 获取id
     *
     * @return id - id
     */
    public String getId() {
        return id;
    }

    /**
     * 设置id
     *
     * @param id id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 获取用户名
     *
     * @return username - 用户名
     */
    public String getUsername() {
        return username;
    }

    /**
     * 设置用户名
     *
     * @param username 用户名
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 获取创建时间
     *
     * @return create_time - 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置创建时间
     *
     * @param createTime 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取密码
     *
     * @return password - 密码
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置密码
     *
     * @param password 密码
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取手机号
     *
     * @return phone - 手机号
     */
    public String getPhone() {
        return phone;
    }

    /**
     * 设置手机号
     *
     * @param phone 手机号
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * 获取昵称
     *
     * @return nickname - 昵称
     */
    public String getNickname() {
        return nickname;
    }

    /**
     * 设置昵称
     *
     * @param nickname 昵称
     */
    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    /**
     * @return headImg
     */
    public String getHeadimg() {
        return headimg;
    }

    /**
     * @param headimg
     */
    public void setHeadimg(String headimg) {
        this.headimg = headimg;
    }

    /**
     * 获取更新时间
     *
     * @return update_time - 更新时间
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置更新时间
     *
     * @param updateTime 更新时间
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }


    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Boolean getSex() {
        return sex;
    }

    public void setSex(Boolean sex) {
        this.sex = sex;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }


    public Boolean getIsdelete() {
        return isdelete;
    }

    public void setIsdelete(Boolean isdelete) {
        this.isdelete = isdelete;
    }

    public Long getUserMoney() {
        return userMoney;
    }

    public void setUserMoney(Long userMoney) {
        this.userMoney = userMoney;
    }


    public String getProblem() {
        return problem;
    }

    public void setProblem(String problem) {
        this.problem = problem;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }
}